<?php
include("sessionUser.php");
    include("Conexao.php");
    $conexao = new Conexao();
   
    $con = $conexao->conectBD();
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 * 
 * 
 * 
 * 
 * 
 */
$idJogo = $_GET["idJogo"];
$idAmigo = $_GET["idAmigo"];

// insere a recomendacao
        $result = pg_prepare($con, "my_query", 'INSERT INTO tbRecomendacao_equipe05 (idUsuario,idAmigo,idJogo) VALUES ($1,$2,$3)');

           $result = pg_execute($con, "my_query", array($_SESSION["id"],$_GET["idAmigo"],$_GET["idJogo"])) or die ("Erro Ao Inserir os Dados");

           echo "<meta HTTP-EQUIV='Refresh' CONTENT='0;URL=indexUser.php?link=7&id=".$_GET["idJogo"]."&pagina=".$_GET["pagina"]."&caracteristica=".$_GET["caracteristica"]."&volta=".$_GET["volta"]."'>";
           

$conexao->desconectBD();
?>
